/**
 * Author(s): xuming.Wong <xuming.Wong@gmail.com>
 */
#ifndef __PQ_Net_H__
#define __PQ_Net_H__

#include "PQPrerequisites.h"

/*
 * Select uses arrays of SOCKETs.  These macros manipulate such
 * arrays.  FD_SETSIZE may be defined by the user before including
 * this file, but the default here should be >= 64.
 *
 * CAVEAT IMPLEMENTOR and USER: THESE MACROS AND TYPES MUST BE
 * INCLUDED IN WINSOCK2.H EXACTLY AS SHOWN HERE.
 */
#ifndef FD_SETSIZE
#define FD_SETSIZE      1024
#endif /* FD_SETSIZE */

#if PLATFORM == PLATFORM_WINDOWS
#include <winsock2.h>
#include <process.h>
#pragma comment(lib, "Ws2_32.lib")
#endif

//The max ip address characters number
#define IP_ADDR_BYTES 24
#define MAX_CONNECT_TIME	(12*1000)	//12 seconds

//typedefs
typedef unsigned short TPacketId;
typedef unsigned char Byte;

namespace PQNet
{
	// Pre-declare classes
	// Allows use of pointers in header files without including individual .h
	// so decreases dependencies between files
	

	

}
#endif
